<!--
 * @Description: 
 * @Author: 张文韬
 * @Date: 2024-11-21 15:07:30
 * @LastEditTime: 2024-11-21 16:05:03
 * @LastEditors: 张文韬
 * @Reference: 
-->
<template>
	<el-dialog v-model="dialogShow" title="支付" width="800" :before-close="cancel">
		<iframe v-if="dialogShow" :src="path" width="100%" height="400"></iframe>
		<template #footer>
			<div class="dialog-footer">
				<el-button type="primary" @click="cancel">确 定</el-button>
				<!-- <el-button @click="cancel">取 消</el-button> -->
			</div>
		</template>
	</el-dialog>
</template>
<script setup>

import { ElMessage } from 'element-plus'

const emits = defineEmits(['success']);

const dialogShow = ref(false);

const path = ref();
const show = async (path) => {
	dialogShow.value = true;
	path.value = path
};
const closeDialog = () => {
	dialogShow.value = false;
	// dialogType.value = undefined;
};

const cancel = () => {
	closeDialog();
};

const submit = () => {
	// const data = tableData.value.map((o) => ({
	// 	processInstanceId: o.processInstanceId,
	// 	status: o.status,
	// 	reason: o.reason,
	// }));
	// completeBatchTask(data).then((res) => {
	// 	ElMessage.success('提交成功');
	// 	closeDialog();
	// 	emits('success');
	// });
};
defineExpose({
	show,
});
</script>
